<template>
  <div class="app-full-page">
    <div class="app-search-conatiner">
      <div class="app-search-space">
      </div>
    </div>
    <!-- 表格数据 -->
    <!-- <table-space></table-space> -->
    <!-- 新增 / 编辑 -->
    <!-- <dialog-space></dialog-space> -->
  </div>
</template>
<script>
import tableSpace from './tableSpace';
import dialogSpace from './dialogSpace';
import lodash from 'lodash';
import busEvent from './js/busEvent';
import { mapGetters } from 'vuex';
export default {
  name: 'keepplan',
  data() {
    return {
      centerNameValue: '',
      siteList: [],
      // ====================================== 对象
      // 查询表单属性
      filterForm: {
        centersListStr: '' // 所属网点
      }
    };
  },
  components: { tableSpace, dialogSpace },
  computed: {
    ...mapGetters(['getUserInfo'])
  },
  created() { },
  methods: {
    // 获取所属网点
    getCenterList() {
      const dataPermissions = this.getUserInfo.dataPermissions;
      this.siteList = dataPermissions.map(val => {
        return {
          label: val.centerName,
          value: val.centerId
        };
      });
    },
    handleSearchData: lodash.debounce(function () {
      busEvent.$emit('filterForm', this.filterForm);
    }, 400)
  }
};
</script>

